package com.xk.school_device.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xk.school_device.common.PageEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author xk
 * @since 2025-04-16
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Purchases对象", description = "")
public class Purchases extends PageEntity implements Serializable  {

    private static final long serialVersionUID = 1L;

    private String purchaseId;

    @ApiModelProperty("设备ID")
    private String deviceId;

    private Integer quantity;

    private BigDecimal unitPrice;

    private BigDecimal totalAmount;

    private LocalDate purchaseDate;

    private String supplier;

    private String contractNumber;

    @ApiModelProperty("采购人ID")
    private String purchaserId;

    @ApiModelProperty("保修截止日期")
    private LocalDate warrantyUntil;

    private LocalDate createdAt;
    private String approvalStatus; // 添加审批状态字段
    private String approverId;     // 审批人ID
    private LocalDateTime approvalDate;   // 审批日期
    private String approvalComment; // 审批备注
    @TableField(exist = false)
    private String approverName;
}
